<?=$header?>

<p>
<? 
$query = $this->db->query('SELECT * FROM gcms_news WHERE ID='.$id);
$row = $query->row();

echo form_open('news/edit2/'.$id);
echo form_input('heading', $row->news_heading); 
echo '<br />';
echo form_textarea('content', $row->news_content);
echo '<br />';
echo form_submit('submit', 'Edit News'); 
echo '<input type="button" value="Cancel" onclick="javascript:window.location = \''.base_url().'news\'" />';
echo form_close();
?>
</p>

<?=$footer?>

</body>
</html>